arithmatic mean for grouped data